﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.Diagnostics;

namespace Lilium.Web.Mvc.AjaxControlToolkit
{
	[RequiredResource(typeof(CommonToolkitScripts), LoadOrder = 0)]
	[ToolkitScriptReference("TextboxWatermark.TextboxWatermark.js", LoadOrder = 1)]
	[ToolkitScriptReference("TextboxWatermark.TextboxWatermarkExt.js", LoadOrder = 2)]
	public class TextBoxWatermarkExtender: ToolkitExtenderBase
	{
		public TextBoxWatermarkExtender(string elementID)
			: base("AjaxControlToolkit.TextBoxWatermarkBehavior", elementID)
		{
		}

		#region public string WatermarkText

		private string m_WatermarkText;

		/// <summary>
		/// Text to place in the control when watermarked
		/// </summary>
		[ExtenderControlProperty()]
		[RequiredProperty()]
		[DefaultValue("")]
		public string WatermarkText { [DebuggerNonUserCodeAttribute] get { return m_WatermarkText ?? string.Empty; } [DebuggerNonUserCodeAttribute] set { m_WatermarkText = value; } }

		#endregion

		#region public string WatermarkCssClass

		private string m_WatermarkCssClass;

		/// <summary>
		/// CSS class to apply to the control when watermarked
		/// </summary>
		[ExtenderControlProperty()]
		[DefaultValue("")]
		public string WatermarkCssClass { [DebuggerNonUserCodeAttribute] get { return m_WatermarkCssClass ?? string.Empty; } [DebuggerNonUserCodeAttribute] set { m_WatermarkCssClass = value; } }

		#endregion
	}
}